<template>
  <div>
    <div class="tr">
      <div class="td">
        全选
        <input type="checkbox" @change="changeChecked" :checked="checkedAll" />
      </div>
      <div class="td">名称</div>
      <div class="td">价格</div>
      <div class="td">数量</div>
      <div class="td">小计</div>
      <div class="td">操作</div>
    </div>
  </div>
</template>

<script setup>
import { defineProps, defineEmits } from "vue";
const props = defineProps(["checkedAll"]);
const emits = defineEmits(["setCheckedAll"]);
const changeChecked = (e) => {
  emits("setCheckedAll", e.target.checked);
};
</script>

<style></style>
